package org.jeecg.modules.submodules.service.impl;

import org.jeecg.modules.submodules.entity.Car;
import org.jeecg.modules.submodules.entity.vo.UserCarVo;
import org.jeecg.modules.submodules.mapper.CarMapper;
import org.jeecg.modules.submodules.service.ICarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 车辆信息表
 * @Author: jeecg-boot
 * @Date:   2020-07-04
 * @Version: V1.0
 */
@Service
public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarService {

    @Autowired
    CarMapper carMapper;
    @Override
    public UserCarVo getUserCarVoDetail(String carId) {
        return carMapper.getUserCarVoDetail(carId);
    }

    @Override
    public List<UserCarVo> getListOfUserCarVo(UserCarVo carVo) {
        return carMapper.getListOfUserCarVo(carVo);
    }

    @Override
    public List<UserCarVo> getCarAndDefaultDriver() {
        return carMapper.getCarAndDefaultDriver();
    }
}
